/**
 * 
 */
package design_pattern.command.awt1;

import java.awt.Button;
import java.awt.Color;
import java.awt.Panel;

/**
 * @author linzq
 * 
 */
public class LetThreeBeLandCommand extends Button implements Command {

  private Panel p;

  public LetThreeBeLandCommand(String caption, Panel p) {
    super(caption);
    this.p = p;
  }

  @Override
  public void execute() {
    p.setBackground(Color.orange);
  }

}
